import { network } from '@/utils';
import { TableListParams } from './data.d';

import { partner } from '../../../../../config/Apis';

export async function queryContractList(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.contract_list, { params });
}

export async function offlineContrac(params: TableListParams) {
  return network.post(partner.contract_terminate, {
    params,
  });
}
